﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using YunBox2.Server.Services;

namespace YunBox2.Server.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            //log4net.Config.XmlConfigurator.Configure();
            createWCFHost();
        }

        private static void createWCFHost()
        {

            using (var host = new ServiceHost(typeof(BoxService)))
            {
                host.Opened += delegate { System.Console.WriteLine("服务已打开,按任意键关闭"); };
                host.Open();

                System.Console.ReadKey();
            }
        }
    }
}
